package com.example.financechain.Utils;

import com.example.financechain.domain.entity.Role;

public class UserThreadLocal {

    private UserThreadLocal(){}

    private static final ThreadLocal<Role> LOCAL = new ThreadLocal<>();

    public static void set(Role role){
        LOCAL.set(role);
    }

    public static Role get(){
        return LOCAL.get();
    }


    public static void remove(){
        LOCAL.remove();
    }


}
